package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IWgtsHomePageFragmentModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.req.AppModleRequest;
import com.wgts.wgts.netmodle.resp.AppModleEntity;
import com.wgts.wgts.netmodle.resp.ArticleEntity;

import java.util.List;

public class WgtsHomePageFragmentModel implements IWgtsHomePageFragmentModel {

    private NetService service;

    public WgtsHomePageFragmentModel(NetService service) {
        this.service = service;
    }

    @Override
    public void wgtsArticle(String pageIndex, String pageSize, HttpResultSubscriber<List<ArticleEntity>> subscriber) {
        service.wgtsArticle(pageIndex, pageSize, subscriber);
    }

    @Override
    public void initDataView(AppModleRequest appModleRequest , HttpResultSubscriber<List<AppModleEntity>> subscriber) {
        service.appModle(appModleRequest, subscriber);
    }
}
